package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;
import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/17 10:36
 * @Version 1.0
 */

public class OrderTech extends BasePojo {

    /**
     * 任务单版本ID
     */
    private Integer orderTechId;
    /**
     * 任务单ID
     */
    private Integer orderId;
    /**
     * 创建人ID
     */
    private Integer userId;
    /**
     * 版本来源ID
     */
    private Integer sourceTypeId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 说明
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /**                                            新增字段                                      */

    /**
     * 创建人名称
     */
    private String userName;
    /**
     * 版本来源名称
     */
    private String sourceTypeName;
    /**
     * 任务单工序流程集合
     */
    private List<OrderFlow> orderFlowList;
    /**
     * 任务单维修流程集合
     */
    private List<OrderRepair> orderRepairList;

    public Integer getOrderTechId() {
        return orderTechId;
    }

    public void setOrderTechId(Integer orderTechId) {
        this.orderTechId = orderTechId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSourceTypeId() {
        return sourceTypeId;
    }

    public void setSourceTypeId(Integer sourceTypeId) {
        this.sourceTypeId = sourceTypeId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSourceTypeName() {
        return sourceTypeName;
    }

    public void setSourceTypeName(String sourceTypeName) {
        this.sourceTypeName = sourceTypeName;
    }

    public List<OrderFlow> getOrderFlowList() {
        return orderFlowList;
    }

    public void setOrderFlowList(List<OrderFlow> orderFlowList) {
        this.orderFlowList = orderFlowList;
    }

    public List<OrderRepair> getOrderRepairList() {
        return orderRepairList;
    }

    public void setOrderRepairList(List<OrderRepair> orderRepairList) {
        this.orderRepairList = orderRepairList;
    }
}